package com.tjsinfo.tjsoa.mail.vo;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;



/**
 * TjsDraft entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class TjsDraft implements java.io.Serializable {

	// Fields

	private String draftId;
	private com.tjsinfo.tjsoa.system.vo.TSystemUser tjsUser;
	private String draftTitle;
	private String draftValue;
	private Date draftDatetime;
	private Integer draftType;
	private Integer draftStart;
	private Integer draftTag;
	private Integer sortid;
	private Set tjsDraftAnnexes = new HashSet(0);
	private Set tjsDraftReceiveds = new HashSet(0);

	// Constructors

	/** default constructor */
	public TjsDraft() {
	}

	/** minimal constructor */
	public TjsDraft(com.tjsinfo.tjsoa.system.vo.TSystemUser tjsUser, String draftTitle, Integer draftType,
			Integer draftStart, Integer draftTag) {
		this.tjsUser = tjsUser;
		this.draftTitle = draftTitle;
		this.draftType = draftType;
		this.draftStart = draftStart;
		this.draftTag = draftTag;
	}

	/** full constructor */
	public TjsDraft(com.tjsinfo.tjsoa.system.vo.TSystemUser tjsUser, String draftTitle, String draftValue,
			Date draftDatetime, Integer draftType, Integer draftStart,
			Integer draftTag, Set tjsDraftAnnexes, Set tjsDraftReceiveds) {
		this.tjsUser = tjsUser;
		this.draftTitle = draftTitle;
		this.draftValue = draftValue;
		this.draftDatetime = draftDatetime;
		this.draftType = draftType;
		this.draftStart = draftStart;
		this.draftTag = draftTag;
		this.tjsDraftAnnexes = tjsDraftAnnexes;
		this.tjsDraftReceiveds = tjsDraftReceiveds;
	}

	// Property accessors

	public String getDraftId() {
		return this.draftId;
	}

	public void setDraftId(String draftId) {
		this.draftId = draftId;
	}

	public com.tjsinfo.tjsoa.system.vo.TSystemUser getTjsUser() {
		return this.tjsUser;
	}

	public void setTjsUser(com.tjsinfo.tjsoa.system.vo.TSystemUser tjsUser) {
		this.tjsUser = tjsUser;
	}

	public String getDraftTitle() {
		return this.draftTitle;
	}

	public void setDraftTitle(String draftTitle) {
		this.draftTitle = draftTitle;
	}

	public String getDraftValue() {
		return this.draftValue;
	}

	public void setDraftValue(String draftValue) {
		this.draftValue = draftValue;
	}

	public Date getDraftDatetime() {
		return this.draftDatetime;
	}

	public void setDraftDatetime(Date draftDatetime) {
		this.draftDatetime = draftDatetime;
	}

	public Integer getDraftType() {
		return this.draftType;
	}

	public void setDraftType(Integer draftType) {
		this.draftType = draftType;
	}

	public Integer getDraftStart() {
		return this.draftStart;
	}

	public void setDraftStart(Integer draftStart) {
		this.draftStart = draftStart;
	}

	public Integer getDraftTag() {
		return this.draftTag;
	}

	public void setDraftTag(Integer draftTag) {
		this.draftTag = draftTag;
	}

	public Set getTjsDraftAnnexes() {
		return this.tjsDraftAnnexes;
	}

	public void setTjsDraftAnnexes(Set tjsDraftAnnexes) {
		this.tjsDraftAnnexes = tjsDraftAnnexes;
	}

	public Set getTjsDraftReceiveds() {
		return this.tjsDraftReceiveds;
	}

	public void setTjsDraftReceiveds(Set tjsDraftReceiveds) {
		this.tjsDraftReceiveds = tjsDraftReceiveds;
	}
	
	public void addTjsDraftAnnexe(TjsDraftAnnex tjsDraftAnnex)
	{
		tjsDraftAnnexes.add(tjsDraftAnnex);
		tjsDraftAnnex.setTjsDraft(this);
	}
	
	public void addTjsDraftReceived(TjsDraftReceived tjsDraftReceived)
	{
		tjsDraftReceiveds.add(tjsDraftReceived);
		tjsDraftReceived.setTjsDraft(this);
	}

	public Integer getSortid() {
		return sortid;
	}

	public void setSortid(Integer sortid) {
		this.sortid = sortid;
	}
}